package com.lxd.com;

import android.app.Activity;
import android.content.Intent;
import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;


public class LoginActivity extends Activity implements OnClickListener{
    /** Called when the activity is first created. */
	
	private Button btn;
	AnimationDrawable frameAnimation;
	 
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.login_activity);
        ImageView myImage = (ImageView) findViewById(R.id.imageView1);
        myImage.setBackgroundResource(R.drawable.myframeanimation);
        frameAnimation=(AnimationDrawable) myImage.getBackground();
        Button btn = (Button)findViewById(R.id.testbtn);
        btn.setOnClickListener(this);
    }

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		frameAnimation.start();
		
		Intent intent = new Intent(this,ClassifyActivity.class);
		startActivity(intent);
		//finish();
	}

}